import request from '@/utils/request'

export function insert(params) {
    return request({
        url: '/api/server/sysClassifyManger/insert',
        method: 'post',
        data: params
    })
}


export function update(params) {
    return request({
        url: '/api/server/sysClassifyManger/update',
        method: 'post',
        data: params
    })
}

export function queryTree(params) {
    return request({
        url: '/api/server/sysClassifyManger/queryTree',
        method: 'get',
        params: params
    })
}

export function deleteById(params) {
    return request({
        url: '/api/server/sysClassifyManger/deleteById',
        method: 'get',
        params: params
    })
}

export function updateBatch(params) {
    return request({
        url: '/api/server/sysClassifyManger/updateBatch',
        method: 'post',
        data: params
    })
}

export function queryByClassifyName(params) {
    return request({
        url: '/api/server/sysClassifyManger/queryByClassifyName',
        method: 'get',
        params: params
    })
}

export function queryOne(params) {
    return request({
        url: '/api/server/sysClassifyManger/queryOne',
        method: 'get',
        params: params
    })
}

// 发布内容批量删除
export function batchDel(params) {
    return request({
        url: '/api/server/healthyDataPublish/batchRecycle',
        method: 'post',
        data: params
    })
}